<div class="membersbox pad50">
	<section>
		<h5><center><b>请长按图片，保存二维码图片到手机上，使用二维码进行推广</b></center></h5>
		<!-- <img width="100%" src="http://aidu201710.b0.upaiyun.com/upload/logo/2018-12/04/338541543921362.jpg"/> -->
		<img src="<?php echo $share_pic;?>" width="100%">
	</section>
</div>
<include file="Common:nav" />
<script src='/Static/mobile/mui/js/mui.min.js'></script>
<script>
mui.init({
  gestureConfig:{
   longtap: true, //默认为false
  }
});
document.addEventListener("plusready",function(){
	var imgurl = $('img').attr('src');
	$("img").on('longtap',function(){
		plus.nativeUI.actionSheet({
		title: '操作',
		cancel: "取消",
		buttons: [{
			title: "保存到相册"
		}]
	}, function(e) {
		var index = e.index;
		if(index1<0) {
			return false;
		}
		switch(index1) {
			case 1: //分享到微信好友
				plus.nativeUI.showWaiting();
				plus.downloader.createDownload(imgurl,'',function(d,status){
					plus.nativeUI.closeWaiting();
					if(status==200) {
						var file = d.filename;
						plus.gallery.save(file,function() {
							plus.nativeUI.alert('保存成功');
						}, function() {
						});
					}
				}).start();
				break;
		}
	})
	})
},false);

</script>